General
The examples are for Visual Basic 6.0.
The features decribed or used here are only available if you included "COM development" during the installation of Connectivity Software. If the features are missing, simply re-run the installation program, making sure that "COM development" is included in the selection made on the "Installation Dashboard" setup wizard page.
- ReadAndDisplayValue: The simplest form. Reads and displays an OPC item value. This is what you get if you follow the steps described in Quick Start for QuickOPC-COM.
- SubscribeMultipleItems: Subscribes to multiple OPC-DA items, and displays the incoming changes in the list box.
- UADocExamples: Contains all VB 6.0 examples for OPC-UA that are given in the Reference documentation.
- UAReadAndDisplayValue: The simplest form for OPC-UA. Reads and displays an OPC-UA node value.
- WriteMultipleItemValues: Writes different values to multiple OPC Data Access items at once.
Where are the examples?
The examples are available in multiple formats and on different locations. You can pick the one that suits you the best.
- On Windows, if you have used the Setup Program to install QuickOPC, examples source files are available from the Start menu or the Launcher application.
- The example source files are in public GitHub repositories - see further below.
- The examples are in this documentation - shown in articles that describe the related concepts, and also all together: QuickOPC Examples.
Visual Basic (VB 6.0) Development Specifics
Hint: If you need to pass an empty to a COM method or property (e.g. when calling an OPC UA method with no input arguments), use the Array() function, with no argument, to create an empty array. Alternatively, create an (empty) ElasticVector object, and convert it to an array using its ToArray Method.
Examples on GitHub
See Also